{#查询借阅信息页面-管理员#}
{% extends "index.html" %}
{% block result %}
    <form action="{{ url_for('base.query_borrowedInfo') }}" class='d_form' method="POST">
        <h3>借阅信息查询</h3>
        <label>
            <input type='text' name='book_id' value placeholder='请输入图书ID'>
        </label>
        <label>
            <input type='text' name='book_name' value placeholder='请输入图书名称'>
        </label>
        {% if user %}
            {% if user.type=="admin" %}
                <label>
                    <input type='text' name='borrower_name' value placeholder='请输入借阅者姓名'>
                </label>
            {% endif %}
        {% endif %}

        <label>
            <input type='date' name='start_time' value placeholder='请输入借阅时间(起始时间，如2022-01-01)'>
        </label>
        <label>
            <input type='date' name='end_time' value placeholder='请输入借阅时间(截至时间，如2022-12-31)'>
        </label>
        {% for message in get_flashed_messages() %}
            <div class="form-group">
                <div class="text-danger">{{ message }}</div>
            </div>
        {% endfor %}
        <input id='submit' type='submit' name='submit' value='查询'>

    </form>

{% endblock %}